/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rhythm.commons.validation;

/**
 *
 * @author mlee
 */
public enum MessageType {

    INFORMATION(0, "INFORMATION"),
    WARNING(1, "WARNING"),
    SEVERE(10,"SEVERE");

    private final String name;
    private final int weight;

    private MessageType(final int weight, final String name) {
        this.weight = weight;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getWeight() {
        return weight;
    }

   



    @Override
    public String toString() {
        return name;
    }
}
